/**
 * 作者: hxw
 * 日期: 2021-06-04 16:10:45
 * 备注: 托管用户表
 */
package com.motu.vertx.module.utility.commondata;

import io.vertx.core.json.JsonObject;

public class GmHostedUserModel {
    protected String accountId; // 帐号id
    protected int accountType; // 帐号类型 (1-魔兔帐号 2-微信 3-QQ 4-gamecenter 5-google)
    protected long userId; // 用户Id

    public GmHostedUserModel() {
    }

    public GmHostedUserModel(JsonObject obj) {
        accountId = obj.containsKey("account_id") ? obj.getString("account_id") : "";
        accountType = obj.containsKey("account_type") ? obj.getInteger("account_type") : 0;
        userId = obj.containsKey("user_id") ? obj.getLong("user_id") : 0;
    }

    public String getAccountId() {
        return accountId;
    }

    public int getAccountType() {
        return accountType;
    }

    public long getUserId() {
        return userId;
    }

}
